<?php

namespace Behavior;

class SessionStartBehavior {
	
    public function run(&$params){
       	
		session(array('name'=>C('COOKIE_PREFIX'),'expire'=>C('COOKIE_EXPIRE')));
		session('[start]');
		if(!session('UNION')){
			session('UNION',intval($_GET['u']));
		}
		
		$uid=session('USER_USERID');
		if(!empty($uid)){
			//处理VIP过期
			$member=new \Member\Model\MemberModel();
			$member->VIPExpired();
		}
    }

}
